﻿namespace OneWorks.Web.Extension
{
    using Newtonsoft.Json;

    public class Controller : System.Web.Mvc.Controller
    {
        protected internal CustomJsonResult CustomJson(object data, Formatting format, JsonSerializerSettings settings)
        {
            return new CustomJsonResult(data, format, settings);
        }

        protected internal CustomJsonResult CustomJson(object data, Formatting format)
        {
            return new CustomJsonResult(data, format);
        }

        protected internal CustomJsonResult CustomJson(object data)
        {
            return new CustomJsonResult(data);
        }       

    }
}
